package com.bwie.controller;

import com.bwie.utils.R;
import com.bwie.vo.PageVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

 /**
 * @author: 鑫仔
 * @description:
 * @params:
 * @return:
 * @date: 2025/7/18 9:40
 */
@RestController
@RequestMapping("/test/index")
@Slf4j
public class IndexController {


     /**
     * @author: 鑫仔
     * @description:
     * @params: [java.lang.Integer, java.lang.Integer, com.bwie.vo.PageVo]
     * @return: com.bwie.utils.R
     * @date: 2025/7/18 9:40
     */
    @PostMapping("test/{pageNum}/{pageSize}")
    public R test(
            @PathVariable(name = "pageNum") Integer pageNum,
            @PathVariable(name = "pageSize") Integer pageSize,
            @RequestBody @Validated PageVo pageVo
    ) {
        log.info("pageNum-" + pageNum);
        log.info("pageSize-" + pageSize);
        log.info("pageVo-" + pageVo);
        return R.OK(pageVo);
    }



}
